home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / utils / bison.arc / MAKEFILE.GNU < prev    next >
Text File  |  1988-07-11  |  1KB  |  56 lines

  1. # Makefile for bison
  2.  
  3. DESTDIR=
  4. # where the installed binary goes
  5. BINDIR = $(DESTDIR)/usr/local
  6.  
  7. # where the parsers go
  8. PARSERDIR = $(DESTDIR)/usr/local/lib
  9.  
  10. # names of parser files
  11. PFILE = bison.simple
  12. PFILE1 = bison.hairy
  13.  
  14. # It is unwise ever to compile a program without symbols.
  15. CFLAGS = -g
  16.  
  17. PFILES = -DXPFILE=\"$(PARSERDIR)/$(PFILE)\" \
  18.      -DXPFILE1=\"$(PARSERDIR)/$(PFILE1)\"
  19.  
  20. OBJECTS = LR0.o allocate.o closure.o conflicts.o derives.o files.o    \
  21.       getargs.o gram.o lalr.o                    \
  22.       lex.o main.o nullable.o output.o print.o reader.o symtab.o    \
  23.       warshall.o
  24.  
  25. start: bison
  26.  
  27. clean:
  28.     rm -f *.o core bison
  29.  
  30. install: bison
  31.     install bison $(BINDIR)
  32.     cp $(PFILE) $(PFILE1) $(PARSERDIR)
  33.  
  34. bison: $(OBJECTS)
  35.     $(CC) $(LDFLAGS) -o bison $(OBJECTS)
  36.  
  37. # This file is different to pass the parser file names
  38. # to the compiler.
  39. files.o: files.c files.h new.h gram.h
  40.     $(CC) -c $(CFLAGS) $(PFILES) files.c
  41.  
  42. LR0.o: machine.h new.h gram.h state.h
  43. closure.o: machine.h new.h gram.h
  44. conflicts.o: machine.h new.h files.h gram.h state.h
  45. derives.o: new.h types.h gram.h
  46. getargs.o: files.h
  47. lalr.o: machine.h types.h state.h new.h gram.h
  48. lex.o: files.h symtab.h lex.h
  49. main.o: machine.h
  50. nullable.o: types.h gram.h new.h
  51. output.o: machine.h new.h files.h gram.h state.h
  52. print.o: machine.h new.h files.h gram.h state.h
  53. reader.o: files.h new.h symtab.h lex.h gram.h
  54. symtab.o: new.h symtab.h gram.h
  55. warshall.o: machine.h
  56.